-
-
Notifications
You must be signed in to change notification settings - Fork 402
[breaking] uniform cli commands and flag #1542
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
ba5385f
to
66dbc61
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Since this is a big PR that contains multiple atomic commits, I recommend it be granted an exemption from the repo's usual squash merge policy.
This would be done by temporarily adjusting the configuration of the repo's merge button, following this procedure:
- Click the "⚙️ Settings" tab of the repository that contains the PR
- Under the "Merge button" section of the Settings page, check the box next to "🔲 Allow merge commits"
- Merge the PR, selecting the "Merge pull request" option from the merge button
- Return to the repository's Settings page
- Uncheck the box next to "🔲 Allow merge commits"
Since the commits will not be automatically squashed, any fixup commits should be manually squashed via an interactive rebase before the merge.
2edafc0
to
80be710
Compare
4d2df31
to
8713d91
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great stuff Umberto. Thanks!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
See comments.
fb73cf8
to
61dba74
Compare
61dba74
to
e092b26
Compare
move `DetectSkipPostInstallValue` in arguments package create `PostInstallFlags` struct in arguments package remove `listFlags` struct
…rd attach -b <fqbn> | -p <port> <sketh-path>`
e092b26
to
294c7bc
Compare
Please check if the PR fulfills these requirements
before creating one)
our contributing guidelines
UPGRADING.md
has been updated with a migration guide (for breaking changes)refactor CLI commands and flags to be consistent with each other.
close #1508
This PR includes various improvements:
sketchpath calculation have been factored out
fqbn and programmer flags now have the same principle of operation as port flag
factored out a function that reports errors when conflicting flags are used
move vars on top and remove structs for uniformity
part of the init section in
update-index
commands have been factored outother minor improvements
I also added
logrus.Info()
in every run function of every commandremove
board details <fqbn>
in favour ofboard details -b <fqbn>
replace
board attach <port|fqbn> <sketch-path>
withboard attach -b <fqbn> | -p <port> <sketh-path>
change
--timeout
flag to--discovery-timeout
inboard list
command for consistencyDoes this PR introduce a breaking change, and is
titled accordingly?
yep, documented in
UPGRADING.md
See how to contribute